/**
 * bootstrap fileinput plugins
 */
(function() {
	'use strick',
	
	require.config({
		paths: {
			"bootstrap.fileinput": "bootstrap/extends/bootstrap-fileinput/4.3.1/js/fileinput.min",
			"bootstrap.fileinput.zh": "bootstrap/extends/bootstrap-fileinput/4.3.1/js/locale/fileinput_locale_zh"
		},
		shim: {
			"bootstrap.fileinput": {
				deps : ["css!bootstrap/extends/bootstrap-fileinput/4.3.1/css/fileinput.min.css"]
			},
			"bootstrap.fileinput.zh": {
				deps : ["bootstrap.fileinput"]
			}
		}
	});
	
	define(['bootstrap.fileinput.zh'], function(){
		return {
			register:function(elem, options){
				return jQuery(elem).fileinput(jQuery.extend({},{language: 'zh'},options));
			}
		};
	});
})(this);
